package com.rayo.accesscontrollercopy.model.db.bean;

import com.alibaba.fastjson.annotation.JSONField;
import com.litesuits.orm.db.annotation.Column;
import com.litesuits.orm.db.annotation.Ignore;
import com.litesuits.orm.db.annotation.Table;
import com.rayo.accesscontrollercopy.config.NetworkConfig;

import java.util.Date;

/**
 * Created by yanghaojie on 16/7/27.
 */
@Table("carduser_table")
public class CardUserData extends BaseModel {
    public static final String USER_ID = "userid";

    @Column(USER_ID)
    private int userid;

    private int groupid;

    private String fname;

    private String lname;

    @JSONField(format = NetworkConfig.JSON_DATE_TIME)
    private Date begin;

    @JSONField(format = NetworkConfig.JSON_DATE_TIME)
    private Date end;
    //新版改为int[]类型
    private String plan;

    @Ignore
    private int flag;

    public CardUserData() {
        this.userid = 0;
        this.groupid = 0;
        this.begin = new Date();
        this.end = new Date();
        this.plan="";
        this.flag = 0;
        this.editime = new Date();
    }

    public int getUserid() {
        return userid;
    }

    public void setUserid(int userid) {
        this.userid = userid;
    }

    public int getGroupid() {
        return groupid;
    }

    public void setGroupid(int groupid) {
        this.groupid = groupid;
    }

    public String getLname() {
        return lname;
    }

    public void setLname(String lname) {
        this.lname = lname;
    }

    public String getFname() {
        return fname;
    }

    public void setFname(String fname) {
        this.fname = fname;
    }

    public Date getBegin() {
        return begin;
    }

    public void setBegin(Date begin) {
        this.begin = begin;
    }

    public Date getEnd() {
        return end;
    }

    public void setEnd(Date end) {
        this.end = end;
    }

    public String getPlan() {
        return plan;
    }

    public void setPlan(String plan) {
        this.plan = plan;
    }

    public int getFlag() {
        return flag;
    }

    public void setFlag(int flag) {
        this.flag = flag;
    }
}
